import { Layout } from '@/router/constant'
export default [
  {
    path: '/plugin',
    name: 'Plugin',
    component: Layout,
    redirect: '/plugin/wangeditor',
    meta: {
      title: '插件',
      permission: ['admin', 'user'],
    },
    children: [
      {
        path: '/plugin/wangeditor',
        name: 'Wangeditor',
        component: () => import('@/views/plugin/wangeditor/index.vue'),
        meta: {
          title: '富文本',
          permission: ['admin', 'user'],
        },
      },
      {
        path: '/plugin/codemirror',
        name: 'Wangeditor',
        component: () => import('@/views/plugin/codemirror/index.vue'),
        meta: {
          title: '代码编辑器',
          permission: ['admin', 'user'],
        },
      },
    ],
  },
]
